package huangjinkuanggong;

import java.awt.*;

public class Gold extends Object{
    Gold(){
        this.x = (int)(Math.random()*700);
        this.y = (int)(Math.random()*550+300);
        this.width=100;
        this.height = 100;
        this.flag = false;
        this.m= 80;
        this.count =4;
        this.image = Toolkit.getDefaultToolkit().getImage
                ("C:\\Users\\杨翔压民\\Desktop\\image\\gold6.png");
    }
}
class GoldMini extends Gold{
    GoldMini(){
        this.width = 30;
        this.height = 36;
        this.m =15;
        this.count = 2;
        this.image = Toolkit.getDefaultToolkit().getImage
                ("C:\\Users\\杨翔压民\\Desktop\\image\\gold5.jpg");
    }
}
class GoldPlus extends Gold{
    GoldPlus(){
        this.x = (int)(Math.random()*650);
        this.width = 100;
        this.height = 136;
        this.m =15;
        this.count = 8;
        this.image = Toolkit.getDefaultToolkit().getImage
                ("C:\\Users\\杨翔压民\\Desktop\\image\\gold3.png");
    }
}